//
//  QDAPIConfig-Swift.swift
//  QDMetroClient
//
//  Created by YueWen on 2019/3/4.
//  Copyright © 2019 YueWen. All rights reserved.
//

import Foundation

/// 返回的error
enum RequestErrorType: String {
    /// 系统异常
    case unNormal = "00"
    /// 请求成功
    case success = "01"
    /// 请求返回失败
    case fail = "02"
    /// 处理中
    case inHand = "03"
    /// 登陆失效
    case unLogin = "04"
    /// 网络请求直接失败
    case error = "05"
    /// 未知状态
    case unknowned
}


/// /static 8071
let QDStaticHostUrl = QDBaseAppUrl + QDStaticHost
/// /payment
let QDPaymentHostUrl = QDBaseAppUrl + QDPaymentHost
/// /customer 8073
let QDCustomerHostUrl = QDBaseAppUrl + QDCustomerHost
/// /ticket 8074
let QDTicketHostUrl = QDBaseAppUrl + QDTicketHost
/// /transit 8075
let QDTransitHostUrl = QDBaseAppUrl + QDTransitHost
// / 义务督察员
let QDinspectorHostUrl = QDBaseAppUrl + QDCustomerHost


/// 义务督察员申请公告
let dutyInspectorNotice = QDStaticHostUrl + "/supervisorApply/searchStatus"

/// 主页界面接口
let homeUrl = QDStaticHostUrl + "/static/index"
/// 资讯header接口
let documentUrl = QDStaticHostUrl + "/document/getModules"
/// 生活圈header接口
let lifeUrl = QDStaticHostUrl + "/document/getModules"

// $$$$
//let homeUrl = "https://www.easy-mock.com/mock/5cb7d3727c1ed00b01dd67de/yuexiaowen/index"
//let documentUrl = "https://www.easy-mock.com/mock/5cb7d3727c1ed00b01dd67de/yuexiaowen/document"
//let lifeUrl = "https://www.easy-mock.com/mock/5cb7d3727c1ed00b01dd67de/yuexiaowen/life"

/// 附近站点
let nearStationUrl = QDStaticHostUrl + "/nearBy"
/// 展示消息的种类列表
let msgCateUrl = QDStaticHostUrl + "/message/list"
/// 阅读所有的种类列表
let msgReadAllUrl = QDStaticHostUrl + "/message/readAll"
/// 请求所有的站点
let allStationsUrl = QDStaticHostUrl + "/station/toStation"
/// 阅读种类所有的消息
let msgReadDetailAllUrl = QDStaticHostUrl + "/message/read"
/// 展示消息种类详情列表
let msgReadDetailListUrl = QDStaticHostUrl + "/message/detail"
/// 站点详情
let stationDetailUrl = QDStaticHostUrl + "/station/stationInfo"
/// 线路规划
let lineGraphUrl = QDStaticHostUrl + "/station/queryPath"
/// 更新
let updateUrl = QDStaticHostUrl + "/vesion/inspect_version"
/// 线路的url
let stationLinesUrl = QDStaticHostUrl + "/station/line"
/// 可用公交线路的url
let busLinesUrl = QDStaticHostUrl + "/bus/line"
/// 紧急公告的url
let exigenceUrl = QDStaticHostUrl + "/static/exigence"
/// 广告位的url $$$$
let pageAdsUrl = QDStaticHostUrl + "/document/getPageAds"
/// 重要信息的url
let importanceMessageUrl = QDStaticHostUrl + "/document/important"
/// 指南的url
let guideUrl = QDStaticHostUrl + "/document/guide"
//let guideUrl = "https://www.easy-mock.com/mock/5cb7d3727c1ed00b01dd67de/yuexiaowen/guide"
/// 360全景的url
let fullViewUrl = QDStaticHostUrl + "/static/overallView"


/// 支付渠道
let payListUrl = QDCustomerHostUrl + "/sign/list"
/// 登陆界面
let loginUrl = QDCustomerHostUrl + "/Login/login"
/// 获得最大的票数
let getMaxCountUrl = QDCustomerHostUrl + "/onlineTicket/maxCount"
/// 计算票价
let getPriceUrl = QDCustomerHostUrl + "/onlineTicket/ticketPrice"
/// 请求支付订单
let requestTicketOrderUrl = QDCustomerHostUrl + "/onlineTicket/requestOrder"
/// 获取短信验证码
let sendMsgUrl = QDCustomerHostUrl + "/MetroMessage/SendMsg.do"
/// 解除支付方式
let releasePayTypeUrl = QDCustomerHostUrl + "/sign/release"
/// 选择默认
let switchDefaultPayTypeUrl = QDCustomerHostUrl + "/sign/switchDefault"
/// 请求签约信息
let signInfoUrl = QDCustomerHostUrl + "/sign/requestSignInfo"
/// 请求认证信息
let signCertificationUrl = QDCustomerHostUrl + "/sign/certification"
/// 请求购买单程票
let onlineTicketUrl = QDCustomerHostUrl + "/onlineTicket/requestOrder"
/// 请求在线购票列表
let onlineTicketListUrl = QDCustomerHostUrl + "/onlineTicket/orderList"
/// 请求搜藏列表
let collectListUrl = QDCustomerHostUrl + "/user/getUserFavorite"



//MARK: 加载的url

/// 公交使用范围的url
let busUserFieldUrl = QDTransitHostUrl + "/transit_line"
/// 线网图的url
let lineGraphWebUrl = "http://site.qd-metro.com/metro/index"//正式
//let lineGraphWebUrl = "http://site.bestonepay.com/site/metro/index"//测试
/// 优惠券的url
let discountInLifeUrl = "https://ld.bestonepay.com/metro.php/metroapp/getsellerslist"
/// 发票的url
let invoiceUrl = "http://appcdn.qd-metro.com/file/201905/invoice/index.html"//生产
//let invoiceUrl = "https://api.qd-metro.com/file/201905/invoice/index.html"//准生产
//let invoiceUrl = "http://192.168.8.134:8073/index.html"//本地测试

